//TOOLS AND ARMOR
/thallasium tools
group:#rand(1,2):(ID=betterendforge:thallasium_shovel;ID=betterendforge:thallasium_pickaxe;ID=betterendforge:thallasium_axe;ID=betterendforge:thallasium_sword;ID=betterendforge:thallasium_hoe)@luck=1
/thallasium armor
group:#rand(1,2):(ID=betterendforge:thallasium_helmet;ID=betterendforge:thallasium_chestplate;ID=betterendforge:thallasium_leggings;ID=betterendforge:thallasium_boots)@luck=1
/terminite tools
group:#rand(1,2):(ID=betterendforge:terminite_shovel;ID=betterendforge:terminite_pickaxe;ID=betterendforge:terminite_axe;ID=betterendforge:terminite_sword;ID=betterendforge:terminite_hoe)@luck=1
/terminite armor
group:#rand(1,2):(ID=betterendforge:terminite_helmet;ID=betterendforge:terminite_chestplate;ID=betterendforge:terminite_leggings;ID=betterendforge:terminite_boots)@luck=1
/crystalite armor
group:#rand(1,2):(ID=betterendforge:crystalite_helmet;ID=betterendforge:crystalite_chestplate;ID=betterendforge:crystalite_leggings;ID=betterendforge:crystalite_boots)@luck=1
/hammers
group:#rand(1,2):(ID=betterendforge:iron_hammer;ID=betterendforge:gold_hammer;ID=betterendforge:diamond_hammer;ID=betterendforge:netherite_hammer)@luck=1
/end hammers
group:#rand(1,2):(ID=betterendforge:aeternium_hammer;ID=betterendforge:thallasium_hammer;ID=betterendforge:terminite_hammer)@luck=1

//BLOCKS
ID=lucky:void_lucky_block,NBTTag=(Luck=100,display=(Name=#jsonStr(text="$5$lLuck Boost")))@luck=1
ID=purple_shulker_box,NBTTag=(display=(Name=#jsonStr(text="$5$lFree Storage")))@luck=1
ID=beacon@luck=2
ID=enchanting_table@luck=1
ID=end_portal_frame,amount=#rand(2,6)@luck=1
ID=dragon_egg@luck=2
ID=tnt,amount=8@luck=1
ID=end_rod,amount=8@luck=1
ID=obsidian,amount=14@luck=1
ID=cake,amount=#rand(1,5)@luck=1
ID=betterendforge:missing_tile,NBTTag=(display=(Name=#jsonStr(text="$5$l$kMissing Block")))@luck=0
ID=lucky:void_lucky_block,NBTTag=(display=(Name=#jsonStr(text="$5$lTry Again")))@luck=0
ID=ender_chest,amount=2@luck=0
ID=dragon_head@luck=0
ID=bedrock@luck=0
ID=sponge@luck=0
ID=lucky:lucky_block,amount=#rand(3,8)@luck=0
ID=lucky:void_lucky_block,amount=#rand(3,8)@luck=0
ID=betterendforge:end_stone_furnace@luck=0
ID=betterendforge:end_stone_smelter@luck=0
group(ID=end_stone,amount=#rand(8,16);ID=end_stone_bricks,amount=#rand(8,16))@luck=0
group(ID=outer_end:violite,amount=#rand(8,16);ID=outer_end:violite_bricks,amount=#rand(8,16);ID=outer_end:mossy_violite_bricks,amount=#rand(8,16))@luck=0
group(ID=endergetic:eumus,amount=#rand(8,16);ID=endergetic:eumus_bricks,amount=#rand(8,16))@luck=0
group(ID=betterendforge:violecite,amount=#rand(8,16);ID=betterendforge:violecite_bricks,amount=#rand(8,16))@luck=0
ID=betterendforge:respawn_obelisk@luck=0
ID=barrier,NBTTag=(display=(Name=#jsonStr(text="$c$kERROR")))@luck=0
ID=betterendforge:infusion_pedestal@luck=0
ID=#randList(betterendforge:aeternium_anvil,betterendforge:thallasium_anvil,betterendforge:terminite_anvil)@luck=0

//ITEMS
group(ID=elytra;ID=firework_rocket,amount=#rand(2,8))@luck=2
ID=nether_star@luck=2
ID=totem_of_undying@luck=2
ID=diamond_horse_armor@luck=2
group(ID=betterendforge:crystal_shards,amount=#rand(4,16);ID=betterendforge:eternal_crystal,amount=#rand(4,16))@luck=2
ID=emerald,amount=#rand(4,16)@luck=1
ID=diamond,amount=#rand(4,16)@luck=1
ID=spectral_arrow,amount=#rand(4,16)@luck=1
ID=betterendforge:amber_gem,amount=#rand(4,16)@luck=1
ID=betterendforge:terminite_ingot,amount=#rand(4,16)@luck=1
ID=golden_horse_armor@luck=2
ID=arrow,amount=#rand(8,32)@luck=1
ID=end_crystal,amount=#rand(1,4)@luck=1
ID=gold_ingot,amount=#rand(8,16)@luck=1
ID=lapis_lazuli,amount=#rand(4,16)@luck=1
ID=endergetic:booflo_hide,amount=11@luck=1
ID=betterendforge:eternal_crystal,amount=#rand(4,16)@luck=1
group(ID=betterendforge:hydralux_petal,amount=#rand(4,16);ID=betterendforge:enchanted_petal,amount=#rand(4,16))@luck=1
ID=betterendforge:terminite_hoe,NBTTag=(display=(Name=#jsonStr(text="$bPaulyaulk Hoe?")))@luck=1
ID=outer_end:cooked_stalker_meat,NBTTag=(display=(Name=#jsonStr(text="$1Looks Appetizing...")))@luck=1
ID=betterendforge:aeternium_ingot,NBTTag=(display=(Name=#jsonStr(text="$7Netherite?"))),amount=#rand(1,5)@luck=1
ID=cake,amount=#rand(1,3)@luck=0
ID=saddle,amount#rand(1,4)@luck=0
ID=shulker_shell@luck=0
ID=ender_pearl,amount=#rand(4,16)@luck=0
ID=ender_eye,amount=#rand(1,6)@luck=0
ID=chorus_fruit,amount=#rand(4,16)@luck=0
ID=endergetic:bolloom_fruit,amount=#rand(4,16)@luck=0
ID=outer_end:azure_berries,amount=#rand(4,16)@luck=0
ID=outer_end:floral_paste,amount=#rand(4,16)@luck=0
ID=betterendforge:ender_shard,amount=#rand(4,8)@luck=0
ID=endergetic:puffbug_bottle@luck=0
ID=#randList(outer_end:rose_crystal_shard,outer_end:mint_crystal_shard,outer_end:cobalt_crystal_shard),amount=#rand(8,32)@luck=0
ID=outer_end:spectragel,NBTTag=(display=(Name=#jsonStr(text="$8$lStrange Azul Gel"))),amount=#rand(4,12)@luck=0
ID=betterendforge:thallasium_ingot,amount=#rand(4,16)@luck=0
ID=betterendforge:thallasium_nugget,NBTTag=(display=(Name=#jsonStr(text="$bTeal Coin")))@luck=0
ID=betterendforge:guidebook,NBTTag=(display=(Name=#jsonStr(text="$5$lThe End Survival Handbook")))@luck=0
ID=betterendforge:terminite_nugget,NBTTag=(display=(Name=#jsonStr(text="$3Aquamarine Coin")))@luck=0
ID=endergetic:eumus_brick,amount=#rand(4,16)@luck=-1
ID=betterendforge:amber_root_raw,amount=#rand(3,10)@luck=-1
ID=betterendforge:umbrella_cluster_juice,NBTTag=(display=(Name=#jsonStr(text="$dHave fun holding onto these ;)"))),amount=#rand(4,16)@luck=-1

//GROUPS
ID=#randSpawnEgg,amount=12@luck=0
group(ID=crossbow;ID=arrow,amount=#rand(16,32))@luck=1
group(ID=anvil;ID=experience_bottle,amount=#rand(4,16))@luck=1
group(ID=ender_pearl,amount=10;ID=ender_eye,amount=5)@luck=1
group(ID=enchanting_table;ID=experience_bottle,amount=#rand(4,16);ID=bookshelf,amount=#rand(4,16))@luck=1
ID=#randList(outer_end:stalker_meat,outer_end:cooked_stalker_meat),amount=#rand(4,16))@luck=1
ID=#randList(betterendforge:shadow_berry_raw,betterendforge:shadow_berry_cooked),amount=#rand(4,16))@luck=1
ID=#randList(betterendforge:end_fish_raw,betterendforge:end_fish_cooked),amount=#rand(4,16))@luck=1
group(ID=iron_ingot,amount=#rand(8,16);ID=gold_ingot,amount=#rand(8,16);ID=diamond,amount=#rand(8,16);ID=emerald,amount=#rand(8,16);ID=lapis_lazuli,amount=#rand(8,16);type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag=#randFireworksRocket)),amount=20,posOffset=#circleOffset(0,2))@luck=2
group(ID=betterendforge:thallasium_ingot,amount=#rand(8,16);ID=netherite_ingot,amount=#rand(8,16);ID=betterendforge:terminite_ingot,amount=#rand(8,16);ID=betterendforge:amber_gem,amount=#rand(8,16);ID=betterforge:eternal_crystal,amount=#rand(8,16);ID=betterendforge:crystal_shards,amount=#rand(8,16);ID=betterendforge:aeternium_ingot,amount=#rand(8,16);type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag=#randFireworksRocket)),amount=20,posOffset=#circleOffset(0,2))@luck=2
ID=#randList(betterendforge:chorus_mushroom_raw,betterendforge:chorus_mushroom_cooked),amount=#rand(4,16))@luck=2
ID=enchanted_book,NBTTag=(StoredEnchantments=#randEnchantment),amount=12@luck=1
group(ID=golden_apple,amount=#rand(4,12);ID=enchanted_golden_apple,amount=#rand(2,6))@luck=2
group(ID=obsidian;ID=end_crystal,amount=#rand(4,16))@luck=1
ID=#randList(potion,splash_potion),NBTTag=(Potion=#randPotion),amount=#rand(4,8)@luck=1
group(ID=bucket,amount=#rand(1,2);ID=water_bucket,amount=#rand(1,2);ID=lava_bucket,amount=#rand(1,2);ID=milk_bucket,amount=#rand(1,2))@luck=1
ID=#randList(betterendforge:hydralux_petal_block_white,betterendforge:hydralux_petal_block_orange,betterendforge:hydralux_petal_block_magenta,betterendforge:hydralux_petal_block_light_blue,betterendforge:hydralux_petal_block_yellow,betterendforge:hydralux_petal_block_lime,betterendforge:hydralux_petal_block_pink,betterendforge:hydralux_petal_block_gray,betterendforge:hydralux_petal_block_light_gray,betterendforge:hydralux_petal_block_cyan,betterendforge:hydralux_petal_block_purple,betterendforge:hydralux_petal_block_blue,betterendforge:hydralux_petal_block_brown,betterendforge:hydralux_petal_block_green,betterendforge:hydralux_petal_block_red,betterendforge:hydralux_petal_block_black),amount=#rand(32,64)@luck=0
group(ID=dropper;ID=gold_ingot,amount=8)@luck=0
group:1:(ID=outer_end:azure_planks,amount=32;ID=betterendforge:mossy_glowshroom_planks,amount=32;ID=betterendforge:lacugrove_planks,amount=32;ID=betterendforge:pythadendron_planks,amount=32;ID=betterendforge:end_lotus_planks,amount=32;ID=betterendforge:dragon_tree_planks,amount=32;ID=betterendforge:tenanea_planks,amount=32;ID=betterendforge:helix_tree_planks,amount=32;ID=betterendforge:lucernia_planks,amount=32;ID=betterendforge:jellyshroom_planks,amount=32;ID=betterendforge:umbrella_tree_planks,amount=32)@luck=0
group(ID=book,amount=#rand(8,32);ID=bookshelf,amount=#rand(4,20))
group(ID=betterendforge:end_stone_furnace;ID=coal,amount=#rand(4,16))@luck=0
group:#rand(1,2):(ID=endergetic:poise_chest;ID=betterendforge:mossy_glowshroom_chest;ID=betterendforge:lacugrove_chest;ID=betterendforge:end_lotus_chest;ID=betterendforge:pythadendron_chest;ID=betterendforge:dragon_tree_chest;ID=betterendforge:tenanea_chest;ID=betterendforge:helix_tree_chest;ID=betterendforge:umbrella_tree_chest;ID=betterendforge:jellyshroom_chest;ID=betterendforge:lucernia_chest)@luck=0
ID=#randList(betterendforge:purpur_lantern,betterendforge:end_stone_lantern,betterendforge:flavolite_lantern,betterendforge:violecite_lantern,betterendforge:sulphuric_rock_lantern),amount=#rand(16,32)@luck=0
group(ID=jukebox;ID=#randList(music_disc_11,music_disc_13,music_disc_blocks,music_disc_chirp,music_disc_far,music_disc_mall,music_disc_mellohi,music_disc_stal,music_disc_strad,music_disc_wait,music_disc_ward,music_disc_pigstep,endergetic:music_disc_kilobyte,outer_end:music_disc_galactic_wave,outer_end:music_disc_unknown_frontier),amount=#rand(1,3))@luck=0
group(ID=dragon_egg;type=explosion,radius=4,delay=1)@luck=-2
group(ID=beacon;type=explosion,radius=6,delay=1)@luck=-2
ID=#randList(betterendforge:mossy_glowshroom_crafting_table,betterendforge:lacugrove_crafting_table,betterendforge:end_lotus_crafting_table,betterendforge:pythadendron_crafting_table,betterendforge:dragon_tree_crafting_table,betterendforge:tenanea_crafting_table,betterendforge:helix_tree_crafting_table,betterendforge:umbrella_tree_crafting_table,betterendforge:jellyshroom_crafting_table,betterendforge:lucernia_crafting_table)@luck=0
group:#rand(1,2):(ID=betterendforge:hydralux_sapling,amount=16;ID=betterendforge:mossy_glowshroom_sapling,amount=16;ID=betterendforge:lacugrove_sapling,amount=16;ID=betterendforge:pythadendron_sapling,amount=16;ID=betterendforge:dragon_tree_sapling,amount=16;ID=betterendforge:tenanea_sapling,amount=16)@luck=0
ID=#randList(endergetic:bolloom_balloon,endergetic:red_bolloom_balloon,endergetic:orange_bolloom_balloon,endergetic:yellow_bolloom_balloon,endergetic:lime_bolloom_balloon,endergetic:green_bolloom_balloon,endergetic:blue_bolloom_balloon,endergetic:pink_bolloom_balloon,endergetic:magenta_bolloom_balloon,endergetic:purple_bolloom_balloon,endergetic:brown_bolloom_balloon,endergetic:gray_bolloom_balloon,endergetic:light_gray_bolloom_balloon,endergetic:white_bolloom_balloon,endergetic:black_bolloom_balloon)@luck=0
ID=#randList(betterendforge:quartz_pedestal,betterendforge:purpur_pedestal,betterendforge:andesite_pedestal,betterendforge:diorite_pedestal,betterendforge:granite_pedestal,betterendforge:eternal_pedestal,betterendforge:flavolite_pedestal,betterendforge:violecite_pedestal,betterendforge:sulfuric_rock_pedestal),amount=#rand(8,16)@luck=0

//STRUCTURES


/chests
type=command,ID="/setblock ~ ~ ~ minecraft:shulker_box{LootTable:"minecraft:chests/end_city_treasure"}"@luck=1
type=command,ID="/setblock ~ ~ ~ minecraft:shulker_box{LootTable:"outer_end:chests/catacomb_loot"}"@luck=1
type=command,ID="/setblock ~ ~ ~ minecraft:shulker_box{LootTable:"outer_end:chests/catacomb_treasure"}"@luck=1
type=command,ID="/setblock ~ ~ ~ minecraft:shulker_box{LootTable:"minecraft:chests/bastion_treasure"}"@luck=1
type=command,ID="/setblock ~ ~ ~ betterendforge:helix_tree_chest{LootTable:"outer_end:chests/catacomb_generic"}"@luck=0
type=command,ID="/setblock ~ ~ ~ betterendforge:helix_tree_chest{LootTable:"minecraft:chests/stronghold_library"}"@luck=0
type=command,ID="/setblock ~ ~ ~ betterendforge:helix_tree_chest{LootTable:"outer_end:chests/basement_loot"}"@luck=0


/falling blocks
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=diamond_block));type=entity,ID=lightning_bolt)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=betterendforge:terminite_block));type=entity,ID=lightning_bolt)@luck=2
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=betterendforge:aeternium_block));type=entity,ID=lightning_bolt)@luck=2
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=gold_block));type=particle,ID=flame,size=(1,2,1),particleAmount=500;type=sound,ID=entity.ghast.shoot)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=lapis_block));type=particle,ID=splash,size=(1,2,1),particleAmount=1000;type=sound,ID=entity.player.swim)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=iron_block));type=particle,ID=large_smoke,size=(1,2,1),particleAmount=500;type=sound,ID=block.fire.extinguish)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=emerald_block));type=particle,ID=happy_villager,size=(1,2,1),particleAmount=500;type=sound,ID=block.grass.break)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=betterendforge:thallasium_block));type=particle,ID=large_smoke,size=(1,2,1),particleAmount=500;type=sound,ID=block.fire.extinguish)@luck=1
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+7,NBTTag=(BlockState=(Name=betterendforge:amber_block));type=particle,ID=splashpotion,potion=fire_resistance,size=(1,2,1),particleAmount=500;type=sound,ID=block.glass.break)@luck=1

/anvil and end crystal
group(type=fill,ID=air,size=(1,8,1);type=entity,ID=falling_block,posY=#bPosY+30,NBTTag=(BlockState=(Name=anvil));type=entity,ID=end_crystal)@luck=-1

/wells
group(type=structure,ID=endstone_well;type=message,ID="An endstone well? Maybe you should throw in an ender eye...";type=command,ID="/give #pName ender_eye{display:{Name:"{\\"text\\":\\"Ender Eye\\",\\"color\\":\\"purple\\"}"}}";type=block,ID=lucky:lucky_block,posY=#bPosY-3,posX=#bPosX-1,PosZ=#bPosZ-1,NBTTag=(Drops=["group(type=message,ID=\"$bYou have been blessed!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2,posX=#bPosX,PosZ=#bPosZ;type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=lapis_lazuli,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=betterendforge:amber_gem,amount=#rand(10,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=betterendforge:crystal_shards,amount=#rand(10,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=betterendforge:eternal_crystal,amount=#rand(10,20),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2

group(type=structure,ID=endstone_well;type=message,ID="An endstone well? Maybe you should throw in an ender eye...";type=command,ID="/give #pName ender_eye{display:{Name:"{\\"text\\":\\"Ender Eye\\",\\"color\\":\\"purple\\"}"}}";type=block,ID=lucky:lucky_block,posY=#bPosY-3,posX=#bPosX-1,PosZ=#bPosZ-1,NBTTag=(Drops=["group(type=message,ID=\"$4Your wish came true(If you like living blocks)!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2,posX=#bPosX,PosZ=#bPosZ;type=entity,ID=outer_end:entombed,amount=20,posY='#'bPosY+10,posOffset='#'circleOffset(5))"]))@luck=-2

group(type=structure,ID=end_well;type=message,ID="A purpur well? Maybe you should throw in a...";type=command,ID="/give #pName popped_chorus_fruit";type=block,ID=lucky:lucky_block,posY=#bPosY-3,posX=#bPosX-1,posZ=#bPosZ-1,NBTTag=(Drops=["group(type=message,ID=\"$eEat your fruits!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;ID=outer_end:azure_berries,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=endergetic:bolloom_fruit,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=betterendforge:shadow_berry_raw,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2))"]);ID=betterendforge:shadow_berry_cooked,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2))"]);ID=betterendforge:blossom_berry,amount=32,posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=1

group(type=structure,ID=end_well;type=message,ID="A purpur well? Maybe you should throw in a...";type=command,ID="/give #pName popped_chorus_fruit";type=block,ID=lucky:lucky_block,posY=#bPosY-3,posX=#bPosX-1,posZ=#bPosZ-1,NBTTag=(Drops=["group(type=message,ID=\"$dShulker bombardment!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=shulker,amount=20,NBTTag=(Color=#rand(0,16)),posY='#'bPosY+10,posOffset='#'circleOffset(5))"]))@luck=-2

group(type=structure,ID=end_well;type=message,ID="A purpur well? Maybe you should throw in a...";type=command,ID="/give #pName popped_chorus_fruit";type=block,ID=lucky:lucky_block,posY=#bPosY-3,posX=#bPosX-1,PosZ=#bPosZ-1,NBTTag=(Drops=["group(type=message,ID=\"$4THINK FAST!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2,posX=#bPosX,PosZ=#bPosZ;type=entity,ID=tnt,amount=20,posY='#'bPosY+30,posOffset='#'circleOffset(6);ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=lapis_lazuli,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=betterendforge:amber_gem,amount=#rand(10,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=betterendforge:crystal_shards,amount=#rand(10,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=betterendforge:eternal_crystal,amount=#rand(10,20),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=0

group(type=structure,ID=nether_well;type=message,ID="A nether well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget{display:{Name:"{\\"text\\":\\"Coin\\",\\"color\\":\\"gold\\"}"}}";type=block,ID=lucky:lucky_block,posY=#bPosY-3,posX=#bPosX-1,PosZ=#bPosZ-1,NBTTag=(Drops=["group(type=message,ID=\"$4DIE!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=tnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=30)"]))@luck=-2

group(type=structure,ID=nether_well;type=message,ID="A nether well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget{display:{Name:"{\\"text\\":\\"Coin\\",\\"color\\":\\"gold\\"}"}}";type=block,ID=lucky:lucky_block,posY=#bPosY-3,posX=#bPosX-1,PosZ=#bPosZ-1,NBTTag=(Drops=["group(type=message,ID=\"$4BURN.\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=blaze,posY='#'bPosY+7,amount=20)"]))@luck=-2

group(type=structure,ID=nether_well;type=message,ID="A nether well? Maybe you should throw in a coin...";type=command,ID="/give #pName gold_nugget{display:{Name:"{\\"text\\":\\"Coin\\",\\"color\\":\\"gold\\"}"}}";type=block,ID=lucky:lucky_block,posY=#bPosY-3,posX=#bPosX-1,PosZ=#bPosZ-1,NBTTag=(Drops=["group(type=message,ID=\"$6Your wish came true! (If you want to be rich)\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=golden_apple,amount=#rand(5,20),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=enchanted_golden_apple,amount=#rand(4,10),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=1

/large explosion
type=explosion,damage=7@luck=-2

/fort and temple
type=structure,ID=black_fort,pos=#pPos@luck=0
type=structure,ID=black_temple,pos=#pPos@chance=0.4@luck=0

/lucky choice
type=structure,ID=custom_lucky_choice_left@luck=0
type=structure,ID=custom_lucky_choice_right@luck=0

/CHAOS
type=structure,ID=chaos@luck=0

/epic tower
type=structure,ID=epic_tower@luck=2

/lucky block tower
type=structure,ID=lucky_block_tower@luck=0

//MOBS

/EXP Bottles
type=entity,ID=experience_bottle,NBTTag=(Motion=#randLaunchMotion),amount=#rand(16,32)@luck=1

/Flying Eggs
group(type=entity,ID=egg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=40;type=entity,ID=item,NBTTag=(Item=(id=emerald,Count=1),Motion=#randLaunchMotion(0.7,18)),amount=20)@luck=2
group(type=entity,ID=egg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=40;type=entity,ID=item,NBTTag=(Item=(id=diamond,Count=1),Motion=#randLaunchMotion(0.7,18)),amount=20)@luck=2
group(type=entity,ID=egg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=40;type=entity,ID=item,NBTTag=(Item=(id=betterendforge:thallasium_ingot,Count=1),Motion=#randLaunchMotion(0.7,18)),amount=20)@luck=2
group(type=entity,ID=egg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=40;type=entity,ID=item,NBTTag=(Item=(id=betterendforge:terminite_ingot,Count=1),Motion=#randLaunchMotion(0.7,18)),amount=20)@luck=2
group(type=entity,ID=egg,NBTTag=(Motion=#randLaunchMotion(0.6,15)),amount=40;type=entity,ID=item,NBTTag=(Item=(id=betterendforge:amber_gem,Count=1),Motion=#randLaunchMotion(0.7,18)),amount=20)@luck=2

/Fish
group(type=entity,ID=betterendforge:cubozoa,amount=#rand(4,16),posOffset=#circleOffset(4);type=entity,ID=betterendforge:end_fish,amount=#rand(4,16),posOffset=#circleOffset(4))@luck=0

/Bugs
group(type=entity,ID=betterendforge:silk_moth,amount=#rand(4,16),posOffset=#circleOffset(4);type=entity,ID=betterendforge:dragonfly,amount=#rand(4,16),posOffset=#circleOffset(4);ype=entity,ID=endergetic:puff_bug,amount=#rand(4,16),posOffset=#circleOffset(4);ype=entity,ID=endermite,amount=#rand(4,16),posOffset=#circleOffset(4))@luck=0

/Stalkers
type=entity,ID=outer_end:stalker,amount=#rand(8,32),posOffset=#circleOffset(4)@luck=0

/Stalker Stack
type=entity,ID=outer_end:stalker,NBTTag=(Passengers=[(id=outer_end:stalker,Passengers=[(id=outer_end:stalker,Passengers=[(id=outer_end:stalker,Passengers=[(id=outer_end:stalker,Passengers=[(id=outer_end:stalker,Passengers=[(id=outer_end:stalker,Passengers=[(id=outer_end:stalker,Passengers=[(id=villager)])])])])])])])])@luck=1

/Bolloom Fruit
type=entity,ID=endergetic:bolloom_fruit,amount=#rand(4,16)@luck=0

/Booflos
type=entity,ID=endergetic:booflo,amount=#rand(4,7)@luck=0

/Chorus Squids
type=entity,ID=outer_end:chorus_squid,amount=3,NBTTag=(CustomName=#jsonStr(text="Life suckers",color=blue,bold=true),CustomNameVisible=true)@luck=-1

/Endermites
type=entity,ID=endermite,amount=16,NBTTag=(CustomName=#jsonStr(text="Weird Termites",color=purple,bold=true),CustomNameVisible=true)@luck=-1

/Giant End Slime
type=entity,ID=betterendforge:end_slime,NBTTag=(Size=10)@luck=-2

/Mutant Enderman
type=entity,ID=mutantbeasts:mutant_enderman@luck=-2

/Wither
type=entity,ID=wither@luck=-2

/Launched TNT
type=entity,ID=tnt,NBTTag=(Fuse=50b,Motion=#randLaunchMotion),amount=20@luck=-2

/Illusioner
group(type=difficulty,ID=hard;type=entity,ID=illusioner,amount=3)@luck=-2

/Purpur Golem
type=entity,ID=outer_end:purpur_golem,amount=3,NBTTag=(CustomName=#jsonStr(text="You might want to run...",color=gray,bold=true),CustomNameVisible=true)@luck=-2


// ARMORED MOBS

/RUN.
group(type=difficulty,ID=hard;type=entity,ID=outer_end:purpur_golem,NBTTag=(HandItems=[(id=betterendforge:aeternium_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],ArmorItems=[(id=betterendforge:aeternium_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=betterendforge:aeternium_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=betterendforge:aeternium_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=betterendforge:aeternium_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName=#jsonStr(text="RUN.",color=dark_red,bold=true),CustomNameVisible=true))@luck=-2

/Bob?
group(type=difficulty,ID=hard;type=entity,ID=zombie,NBTTag=(HandItems=[(id=betterendforge:aeternium_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],ArmorItems=[(id=betterendforge:crystalite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=betterendforge:crystalite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=betterendforge:crystalite_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=betterendforge:crystalite_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName=#jsonStr(text="Bob?",color=aqua,bold=true),CustomNameVisible=true))@luck=-2

/BOBARMY
group(type=difficulty,ID=hard;type=entity,ID=zombie,amount=8,NBTTag=(HandItems=[(id=betterendforge:aeternium_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],ArmorItems=[(id=betterendforge:crystalite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=betterendforge:crystalite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=betterendforge:crystalite_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=betterendforge:crystalite_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName=#jsonStr(text="BOBARMY",color=aqua,bold=true),CustomNameVisible=true))@luck=-2

/Taylor Returns
group(type=difficulty,ID=hard;type=entity,ID=illusioner,NBTTag=(HandItems=[(id=bow,Count=1,tag=(Enchantments=#luckyBowEnchantments))],ArmorItems=[(id=betterendforge:terminite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=betterendforge:terminite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=betterendforge:terminite:chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=betterendforge:terminite_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName=#jsonStr(text="Taylor Returns",color=blue,bold=true),CustomNameVisible=true))@luck=-2

/Mega Bob
group(type=difficulty,ID=hard;type=entity,ID=giant,NBTTag=(HandItems=[(id=betterendforge:terminite_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],ArmorItems=[(id=betterendforge:terminite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=betterendforge:terminite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=betterendforge:terminite_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=betterendforge:terminite_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName=#jsonStr(text="MEGABOB",color=aqua,bold=true),CustomNameVisible=true))@luck=-2

/Angry Mob
group(type=difficulty,ID=hard;type=entity,ID=vindicator,amount=10,NBTTag=(HandItems=[(id=betterendforge:aeternium_axe,Count=1,tag=(Enchantments=#luckySwordEnchantments))],ArmorItems=[(id=betterendforge:terminite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=betterendforge:terminite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=betterendforge:terminite:chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=betterendforge:terminite_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName=#jsonStr(text="Angry Mob",color=red,bold=true),CustomNameVisible=true))@luck=-2

/???
group(type=difficulty,ID=hard;type=entity,ID=betterendforge:shadow_walker,NBTTag=(HandItems=[(id=lucky:voided_lucky_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments))],ArmorItems=[(id=betterendforge:aeternium_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=betterendforge:aeternium_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=betterendforge:aeternium_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=betterendforge:aeternium_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName=#jsonStr(text="???",color=black,bold=true,obfuscated=true),CustomNameVisible=true))@luck=-2

/Lenny
group(type=difficulty,ID=hard;type=entity,ID=enderman,NBTTag=(HandItems=[(id=mutantbeasts:endersoul_hand,Count=1,tag=(Enchantments=#luckySwordEnchantments))],ArmorItems=[(id=diamond_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments)),(id=diamond_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments)),(id=diamond_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments)),(id=diamond_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments))],HandDropChances=[0.5f,0f],ArmorDropChances=[0.3f,0.3f,0.3f,0.3f],CustomName=#jsonStr(text="Lenny",color=dark_green,bold=true),CustomNameVisible=true))@luck=-2

// MONSTER APOCALYPSE

/sword, difficulty, time, potion effects
group(ID=wooden_sword;type=difficulty,ID=hard;type=time,ID=18750;type=effect,ID=slowness,duration=30,amplifier=4;type=effect,ID=blindness,duration=30; \

/Endermites
type=entity,ID=endermite,amount=#rand(16,32); \

/Creepers
type=entity,ID=creeper,amount=#rand(16,32); \

/Wither Skeletons
type=entity,ID=wither_skeleton,amount=#rand(16,32); \

/Shadow Walkers
type=entity,ID=betterendforge:shadow_walker,amount=#rand(16,32),posOffset=#circleOffset(8,10))@luck=-2

// WANDERING TRADERS

/Thallasium Salesman
type=entity,ID=wandering_trader,NBTTag=(Offers=(Recipes=[(buy=(id=betterendforge:thallasium_ingot,Count=#rand(10,15)),sell=(id=betterendforge:thallasium_shovel,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Shovel",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(15,20)),sell=(id=betterendforge:thallasium_pickaxe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Pickaxe",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(15,20)),sell=(id=betterendforge:thallasium_axe,Count=1,tag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Hero's Axe",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(15,20)),sell=(id=betterendforge:thallasium_hammer,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="End Smith's Steel Hammer",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(10,15)),sell=(id=betterendforge:thallasium_hoe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Hoe",color=white,bold=true)))),maxUses=1)]),CustomName=#jsonStr(text="Traveling Salesman",color=white,bold=true),CustomNameVisible=true)@luck=1
type=entity,ID=wandering_trader,NBTTag=(Offers=(Recipes=[(buy=(id=betterendforge:thallasium_ingot,Count=#rand(12,17)),sell=(id=betterendforge:thallasium_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Hero's Helmet",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(20,25)),sell=(id=betterendforge:thallasium_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Hero's Chestplate",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(15,20)),sell=(id=betterendforge:thallasium_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Hero's Leggings",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(12,17)),sell=(id=betterendforge:thallasium_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Hero's Boots",color=white,bold=true)))),maxUses=1)]),CustomName=#jsonStr(text="Traveling Salesman",color=white,bold=true),CustomNameVisible=true)@luck=1
type=entity,ID=wandering_trader,NBTTag=(Offers=(Recipes=[(buy=(id=betterendforge:thallasium_ingot,Count=#rand(20,25)),sell=(id=betterendforge:thallasium_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Hero's Sword",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(20,25)),sell=(id=bow,Count=1,tag=(Enchantments=#luckyBowEnchantments,display=(Name=#jsonStr(text="Hero's Bow",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(10,15)),sell=(id=fishing_rod,Count=1,tag=(Enchantments=#luckyFishingRodEnchantments,display=(Name=#jsonStr(text="Hero's Fishing Rod",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(10,15)),sell=(id=potion,Count=1,tag=(Potion="slow_falling",CustomPotionEffects=#luckyPotionEffects,display=(Name=#jsonStr(text="Vial of Light",color=white,bold=true)))),maxUses=1),(buy=(id=betterendforge:thallasium_ingot,Count=#rand(7,12)),sell=(id=splash_potion,Count=1,tag=(Potion="harming",CustomPotionEffects=#unluckyPotionEffects,display=(Name=#jsonStr(text="Throwing Bottle of Void Essence",color=black,bold=true)))),maxUses=1)]),CustomName=#jsonStr(text="Traveling Salesman",color=white,bold=true),CustomNameVisible=true)@luck=1

/Terminite Salesman
type=entity,ID=wandering_trader,NBTTag=(Offers=(Recipes=[(buy=(id=betterendforge:terminite_ingot,Count=#rand(10,15)),sell=(id=betterendforge:terminite_shovel,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Shovel",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(15,20)),sell=(id=betterendforge:terminite_pickaxe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Pickaxe",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(15,20)),sell=(id=betterendforge:terminite_axe,Count=1,tag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Hero's Axe",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(15,20)),sell=(id=betterendforge:terminite_hammer,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Aqua Bone Crusher",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(10,15)),sell=(id=betterendforge:terminite_hoe,Count=1,tag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Hoe",color=aqua,bold=true)))),maxUses=1)]),CustomName=#jsonStr(text="Traveling Salesman",color=aqua,bold=true),CustomNameVisible=true)@luck=1
type=entity,ID=wandering_trader,NBTTag=(Offers=(Recipes=[(buy=(id=betterendforge:terminite_ingot,Count=#rand(12,17)),sell=(id=betterendforge:terminite_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Hero's Helmet",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(20,25)),sell=(id=betterendforge:terminite_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Hero's Chestplate",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(15,20)),sell=(id=betterendforge:terminite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Hero's Leggings",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(12,17)),sell=(id=betterendforge:terminite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Hero's Boots",color=aqua,bold=true)))),maxUses=1)]),CustomName=#jsonStr(text="Traveling Salesman",color=aqua,bold=true),CustomNameVisible=true)@luck=1
type=entity,ID=wandering_trader,NBTTag=(Offers=(Recipes=[(buy=(id=betterendforge:terminite_ingot,Count=#rand(20,25)),sell=(id=betterendforge:terminite_sword,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Hero's Sword",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(20,25)),sell=(id=bow,Count=1,tag=(Enchantments=#luckyBowEnchantments,display=(Name=#jsonStr(text="Hero's Bow",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(10,15)),sell=(id=fishing_rod,Count=1,tag=(Enchantments=#luckyFishingRodEnchantments,display=(Name=#jsonStr(text="Hero's Fishing Rod",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(10,15)),sell=(id=potion,Count=1,tag=(Potion="slow_falling",CustomPotionEffects=#luckyPotionEffects,display=(Name=#jsonStr(text="Vial of Light",color=aqua,bold=true)))),maxUses=1),(buy=(id=betterendforge:terminite_ingot,Count=#rand(7,12)),sell=(id=splash_potion,Count=1,tag=(Potion="harming",CustomPotionEffects=#unluckyPotionEffects,display=(Name=#jsonStr(text="Throwing Bottle of Void Essence",color=black,bold=true)))),maxUses=1)]),CustomName=#jsonStr(text="Traveling Salesman",color=aqua,bold=true),CustomNameVisible=true)@luck=1

/Legendary Salesman
type=entity,ID=wandering_trader,NBTTag=(Offers=(Recipes=[(buy=(id=betterendforge:amber_gem,Count=#rand(5,10)),buyB=(id=betterendforge:eternal_crystal,Count=#rand(5,11)),sell=(id=betterendforge:crystalite_helmet,Count=1,tag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Glistening Helm",color=light_purple,bold=true)))),maxUses=1),(buy=(id=betterendforge:amber_gem,Count=#rand(7,14)),buyB=(id=betterendforge:eternal_crystal,Count=#rand(5,11)),sell=(id=betterendforge:crystalite_chestplate,Count=1,tag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Glistening Chest",color=light_purple,bold=true)))),maxUses=1),(buy=(id=betterendforge:amber_gem,Count=#rand(5,11)),buyB=(id=betterendforge:eternal_crystal,Count=#rand(5,11)),sell=(id=betterendforge:crystalite_leggings,Count=1,tag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Glistening Legwear",color=light_purple,bold=true)))),maxUses=1),(buy=(id=betterendforge:amber_gem,Count=#rand(4,9)),buyB=(id=betterendforge:eternal_crystal,Count=#rand(5,11)),sell=(id=betterendforge:crystalite_boots,Count=1,tag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Glistening Feet",color=light_purple,bold=true)))),maxUses=1)]),CustomName=#jsonStr(text="Traveling Salesman",color=light_purple,bold=true),CustomNameVisible=true)@luck=2
type=entity,ID=wandering_trader,NBTTag=(Offers=(Recipes=[(buy=(id=betterendforge:amber_gem,Count=#rand(12,23)),buyB=(id=betterendforge:eternal_crystal,Count=#rand(12,22)),sell=(id=lucky:voided_lucky_sword,Count=1,tag=(Luck=80,Enchantments=#luckySwordEnchantments)),maxUses=1),(buy=(id=betterendforge:amber_gem,Count=#rand(14,26)),buyB=(id=betterendforge:eternal_crystal,Count=#rand(12,24)),sell=(id=lucky:abyssal_bow,Count=1,tag=(Enchantments=#luckyBowEnchantments)),maxUses=1),(buy=(id=betterendforge:amber_gem,Count=#rand(10,15)),buyB=(id=betterendforge:eternal_crystal,Count=#rand(10,14)),sell=(id=betterendforge:aeternium_hammer,Count=1,tag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Ancient Skull Smasher",color=light_purple,bold=true)))),maxUses=1),(buy=(id=betterendforge:amber_gem,Count=#rand(5,7)),buyB=(id=betterendforge:eternal_crystal,Count=#rand(5,7)),sell=(id=lucky:null_potion,Count=3,tag=(Luck=80)),maxUses=1),(buy=(id=betterendforge:amber_gem,Count=#rand(5,7)),buyB=(id=betterendforge:eternal_crystal,Count=#rand(5,7)),sell=(id=lucky:null_potion,Count=3,tag=(Luck=-80)),maxUses=1)]),CustomName=#jsonStr(text="Traveling Salesman",color=light_purple,bold=true),CustomNameVisible=true)@luck=2


// Hero Stuff

/Sword and Bow
ID=betterendforge:aeternium_sword,NBTTag=(Enchantments=#luckySwordEnchantments,display=(Name=#jsonStr(text="Hero's Sword",color=dark_aqua,bold=true)))@luck=1
ID=bow,NBTTag=(Enchantments=#luckyBowEnchantments,display=(Name=#jsonStr(text="Hero's Bow",color=blue,bold=true)))@luck=1

/Crossbow
ID=crossbow,NBTTag=(Enchantments=[(id=minecraft:piercing,lvl=#rand(0,5)),(id=minecraft:multishot,lvl=#rand(0,5)),(id=minecraft:quick_charge,lvl=#rand(0,5)),(id=minecraft:unbreaking,lvl=#rand(0,3))],display=(Name=#jsonStr(text="Hero's Crossbow",color=blue,bold=true)))@luck=1

/Fishing Rod
ID=fishing_rod,NBTTag=(Enchantments=#luckyFishingRodEnchantments,display=(Name=#jsonStr(text="$9$lHero's Fishing Rod",color=blue,bold=true)))@luck=0

/Tools
group:#rand(1,2):(ID=betterendforge:aeternium_shovel,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Shovel",color=dark_aqua,bold=true)));ID=betterendforge:aeternium_pickaxe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Pickaxe",color=dark_aqua,bold=true)));ID=betterendforge:aeternium_axe,NBTTag=(Enchantments=#luckyAxeEnchantments,display=(Name=#jsonStr(text="Hero's Axe",color=dark_aqua,bold=true)));ID=betterendforge:aeternium_hoe,NBTTag=(Enchantments=#luckyToolEnchantments,display=(Name=#jsonStr(text="Hero's Hoe",color=dark_aqua,bold=true))))@luck=1

/Armor
group:#rand(1,2):(ID=betterendforge:aeternium_helmet,NBTTag=(Enchantments=#luckyHelmetEnchantments,display=(Name=#jsonStr(text="Hero's Helmet",color=dark_aqua,bold=true)));ID=betterendforge:aeternium_chestplate,NBTTag=(Enchantments=#luckyChestplateEnchantments,display=(Name=#jsonStr(text="Hero's Chestplate",color=dark_aqua,bold=true)));ID=betterendforge:aeternium_leggings,NBTTag=(Enchantments=#luckyLeggingsEnchantments,display=(Name=#jsonStr(text="Hero's Leggings",color=dark_aqua,bold=true)));ID=betterendforge:aeternium_boots,NBTTag=(Enchantments=#luckyBootsEnchantments,display=(Name=#jsonStr(text="Hero's Boots",color=dark_aqua,bold=true))))@luck=1

/Potions
ID=potion,NBTTag=(Potion="slow_falling",CustomPotionEffects=#luckyPotionEffects,display=(Name=#jsonStr(text="Vial of Light",color=white,bold=true)))@luck=2
ID=splash_potion,NBTTag=(Potion="harming",CustomPotionEffects=#unluckyPotionEffects,display=(Name=#jsonStr(text="Throwing Bottle of Void Essence",color=black,bold=true)))@luck=1
ID=potion,NBTTag=(Potion="slow_falling",CustomPotionEffects=#unluckyPotionEffects,display=(Name=#jsonStr(text="Stalker Milk",color=dark_gray,bold=true)))@luck=-2

/Lucky Sword, Bow, and Potion
type=item,ID=lucky:lucky_bow@chance=1.5@luck=1
type=item,ID=lucky:lucky_sword@chance=1.5@luck=1
group(type=item,ID=lucky:lucky_sword;type=item,ID=lucky:lucky_bow;type=item,ID=lucky:lucky_potion,NBTTag=(Luck=#randList(100,-100)),amount=#rand(10,15);type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,Count=1,tag=#randFireworksRocket)),amount=20,posOffset=#circleOffset(0,2))@luck=2
type=item,ID=lucky:lucky_potion,amount=#rand(4,16)@chance=3@luck=1
type=item,ID=lucky:lucky_potion,NBTTag=(Luck=#randList(50,-50)),amount=#rand(4,16)@chance=2@luck=1
type=item,ID=lucky:lucky_potion,NBTTag=(Luck=#randList(100,-100)),amount=#rand(4,16)@chance=1.5@luck=2

/Void Sword and Bow
type=item,ID=lucky:abyssal_bow@chance=1.5@luck=1
type=item,ID=lucky:voided_lucky_sword@chance=1.5@luck=1

/Cursed Sword and Bow
type=item,ID=lucky:abyssal_bow,NBTTag=(Luck=-100)@luck=-1
type=item,ID=lucky:voided_lucky_sword,NBTTag=(Luck=-100)@luck=-1

/Null Potions
type=item,ID=lucky:null_potion,amount=#rand(4,16)@chance=3@luck=1
type=item,ID=lucky:null_potion,NBTTag=(Luck=#randList(50,-50)),amount=#rand(4,16)@chance=2@luck=1
type=item,ID=lucky:null_potion,NBTTag=(Luck=#randList(100,-100)),amount=#rand(4,16)@chance=1.5@luck=2